Repository navigation
Generator cardinality: skip-one chain needs 8 states; exact solver for rectangle-free supports - #73
Merged
Merged
Conversation
…avers2011 Feldman1998b is the SFI working paper published in Entropy (2022); Travers2010 is the exact-synchronization paper in J. Stat. Phys. 145 (2011). structural_information cites Feldman & Crutchfield (2003), synchronization cites the asymptotic-synchronization paper, and predictability_gain relates h_mu(L) - h_mu to Bialek et al.'s learning curve and Crutchfield & Feldman's r(L). Co-authored-by: Cursor <cursoragent@cursor.com>
…r rectangle-free supports The six-symbol skip-one chain has |S+| = |S-| = 6 and vanishing persistent crypticities, yet every minimal generator has 8 states, so min(|S+|, |S-|) + 1 is not a bound. Add one_wide_exact_common_information, exact G[X : Y] for supports whose rectangles lie in one row or column, with the chain as its regression test; cap separating_optima at the number of support cells; document the global_bound_states default as a convention. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
min(|S+|, |S-|) + 1is not a bound on minimal generator size. The skip-one chain is the first-order Markov chain onZ_6that movesi -> i + 1ori + 2; in cycle order the cells(i, i+1), (i, i+2)are heavy, heavy, light (light1e-3, heavy0.1245). It has|S+| = |S-| = 6and both persistent crypticities vanish, soC_g = G[S+ : S-]. That value is2.037622with 8 states; 7 states give at least2.269805. The remarks inglobal_boundand the docs saying every certified case needs at most|S+| + 1states are replaced, and theglobal_bound_statesdefault,min(|S+|, |S-|) + 1, is now documented as a convention.generator_bounds.one_wide_exact_common_information(P). It computesG[X : Y]exactly when every rectangle in the support lies in one row or one column. In that case the optimum is a partition of the support cells with at most one block per row and column. The solver enumerates the row-or-column assignments on each connected component and combines components by min-plus convolution, soby_terms[k]is the optimum with at mostkvalues. A hypothesis test checks it against brute-force partition enumeration, and the skip-one chain is a regression test.separating_optimadefault sizes are2 .. min(m, 8), wheremis the number of support cells; previously the cap was|S+| |S-|. Kumar, Li & El Gamal's perturbation argument (Kumar2014), restricted to the support, bounds the number of terms some optimum needs bym.Feldman1998bnow points to "Discovering Noncritical Organization" (Entropy 24, 2022; SFI working paper 1998).Travers2010now points to the exact-synchronization paper, J. Stat. Phys. 145 (2011).structural_informationcites Feldman & Crutchfield (2003).predictability_gaindocstring explains thath_mu(L) - h_muis Bialek et al.'s learning curve and Crutchfield & Feldman'sr(L), and that they reserve "predictability gain" for the first difference.No published source gives this family. The certification scripts are in the cpfci repo (
markov_skip_counterexample.py,markov_skip_independent.py).Follow-ups (not in this PR)
one_wide_exact_common_informationfrom the pipeline when both persistent crypticities vanish and the causal-state joint has no 2 x 2 rectangle. That would certify the skip-one chain, where the pipeline currently stops at a lower bound of 2.0296.heaviest_term_boundfrom1 / (2^min(|X|, |Y|) - 1)to1 / min(m, 2^min(|X|, |Y|) - 1), by the same support argument.Testing
uv run pytest -n 4(default markers): 2861 passed, 13 skippeduv run ruff format --check .,uv run ruff check .uv run ty check: no errors; the warnings are all in code this PR doesn't touchuv run sphinx-build -E -W --keep-going -b html docs docs/_build/html